package com.party.service.study;

import com.party.common.Page;
import com.party.model.Answer;
import com.party.model.Test;

import java.util.List;

/**
 * Created by 011926 on 2014/9/23.
 */
public interface TestService
{
    public int add(Test test);

    public int delete(Integer id);

    public Test getById(Integer id);

    public List<Test> getByIds(List<Integer> ids);

    /**
     * 分页获取
     * @param pageSize
     * @param pageNumber
     * @return
     */
    public Page getList(Test test, int pageSize, int pageNumber);

    /**
     * 根据学习内容id获得 它下面的考试题目
     * @param id
     * @return
     */
    public List<Test> getByContentId(Integer id);

    public int addTestAndAnswer(Test test, List<Answer> listExamAnswer);
    public int editTestAndAnswer(Test test, List<Answer> list);

    public int delete(String ids);
}
